package com.horse.cloud.data.domain.page;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @create : Created by intelliJ IDEA 17.2
 * @author : bing.Pan
 * @e-mail : 15923508369@163.com
 * @gmdate : 02 05 2018 11:03
 * @sidesc :
 */

@Data
@ApiModel
public class PageSupperBo implements Serializable{

    private static final long serialVersionUID = 4261203425008405540L;

    @ApiModelProperty(value = "当前页码",required = true)
    @NotNull(message="当前页码不能为空!")
    private int pageIndex = 1;

    @ApiModelProperty(value = "每页数据量",required = true)
    @NotNull(message = "每页数量不能为空!")
    private int pageSize = 20;

    @ApiModelProperty(value = "是否统计总数（默认false）")
    private boolean totalCount = false;


}
